<?php
Doo::loadCore('db/DooModel');

class FrbcmsContentBase extends DooModel
{

    /**
     * @var int Max length is 11.
     */
    public $cnt_id;

    /**
     * @var int Max length is 11.
     */
    public $pge_id;

    /**
     * @var text
     */
    public $cnt_content;

    /**
     * @var int Max length is 11.
     */
    public $tpe_id;

    /**
     * @var varchar Max length is 50.
     */
    public $cnt_key;

    /**
     * @var varchar Max length is 250.
     */
    public $cnt_real_name;

    public $_table = 'frbcms_content';
    public $_primarykey = 'cnt_id';
    public $_fields = array('cnt_id','pge_id','cnt_content','tpe_id','cnt_key','cnt_real_name');

    public function getVRules() {
        return array(
                'cnt_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'optional' ),
                ),

                'pge_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'notnull' ),
                ),

                'cnt_content' => array(
                        array( 'notnull' ),
                ),

                'tpe_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'notnull' ),
                ),

                'cnt_key' => array(
                        array( 'maxlength', 50 ),
                        array( 'notnull' ),
                ),

                'cnt_real_name' => array(
                        array( 'maxlength', 250 ),
                        array( 'notnull' ),
                )
            );
    }

}